<h1>Lista de compañias</h1>

<table>
  <thead>
    <tr>
      <th>Id</th>
      <th>Nombre</th>
      <th>Direccion</th>
      <th>Telefono</th>
      <th>Email</th>
    </tr>
  </thead>
  <tbody>
    <?php foreach ($companias as $compania): ?>
    <tr>
      <td><a href="<?php echo url_for('compania/show?id='.$compania->getId()) ?>"><?php echo $compania->getId() ?></a></td>
      <td><?php echo $compania->getNombre() ?></td>
      <td><?php echo $compania->getDireccion() ?></td>
      <td><?php echo $compania->getTelefono() ?></td>
      <td><?php echo $compania->getEmail() ?></td>
    </tr>
    <?php endforeach; ?>
  </tbody>
</table>

  <a href="<?php echo url_for('compania/new') ?>">New</a>
